<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@include file="/pages/common/head.jsp" %>
    <style type="text/css">
        h1 {
            text-align: center;
            margin-top: 200px;
        }
    </style>
</head>
<body>

<div id="header">
    <span class="wel_word">我的订单</span>
    <%-- 静态包含用户操作的模块，用户信息模块 --%>
    <%@include file="../common/operation.jsp" %>
</div>

<div id="main">

    <table>
        <tr>
            <td>日期</td>
            <td>金额</td>
            <td>状态</td>
        </tr>

        <c:forEach items="${sessionScope['orderList']}" var="order">
            <tr>
                <td>${order.create_time}</td>
                <td>${order.price}</td>
                <c:if test="${order.status == 1}">
                    <td>厨师备菜中</td>
                </c:if>
                <c:if test="${order.status != 1}">
                    <td>以上菜</td>
                </c:if>
            </tr>
        </c:forEach>
    </table>


</div>

<%--静态包含页脚内容--%>
<%@include file="../common/footer.jsp" %>
</body>
</html>